package org.blogwu.learn.designpattern.chapter15.v3;

public class Main {

    public static void main(String[] args) {
        Display d1 = new Display(new StringDisplayImpl("Hello,China."));
        Display d2 = new CountDisplay(new StringDisplayImpl("Hello,World."));
        CountDisplay d3 = new CountDisplay(new StringDisplayImpl("Hello,Universe."));
        RandomDisplay d4 = new RandomDisplay(new StringDisplayImpl("Hello,SB."));

        d1.display();
        d2.display();
        d3.display();
        d3.multDisPlay(5);
        d4.multDisPlay();


    }
}
